.demo6 {
    display: flex;
    align-items: center;
    justify-content: center;

    canvas {
        border: 1px solid #ccc;
    }
}